package org.liang.domain.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.liang.domain.entity.Country;

public interface CountryMapper {

    @Insert("insert into country(name, code) values(#{name}, #{code})")
    int save(Country entity);

    @Select("select * from country where id = #{id}")
    List<Country> findAll();
}
